package server;

import rock.config.RpcServiceConfig;
import rock.remoting.transmit.socket.SocketRpcServer;
import service.IUserService;
import service.impl.UserServiceImpl;

public class SocketServerMain {

    public static void main(String[] args) {
        IUserService userService = new UserServiceImpl();

        SocketRpcServer  socketRpcServer  = new SocketRpcServer();
        RpcServiceConfig rpcServiceConfig = new RpcServiceConfig();
        rpcServiceConfig.setService(userService);
        socketRpcServer.register(rpcServiceConfig);
        socketRpcServer.start();

    }
}
